package com.glink.manage.vo.code;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.glink.manage.domain.CodeBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CodeTreeVo {

    @TableId(value = "id")
    private int id;

    @ApiModelProperty(value = "字典名字")
    @TableField("`name`")
    private String name;

    @ApiModelProperty(value = "字典类型 1-组织架构节点,2-职位名称,0-职位分类")
    private int type;

    @ApiModelProperty(value = "父节点类型")
    private int parentType;

    @ApiModelProperty(value = "字典说明")
    private String remark;

    @ApiModelProperty(value = "代码值")
    @TableField("`key`")
    private String key;

    @ApiModelProperty(value = "排序")
    private int seq;

    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;

    @ApiModelProperty(value = "是否系统预设,0-否,1-是")
    private Integer isFixed;

    @ApiModelProperty(value = "左边栏,右边详情展示,0-左边,1-右边")
    private Integer isLeaf;

    @ApiModelProperty(value = "子节点列表")
    private List<CodeBean> children;

}
